// 导入 layout 和 组织架构组件
import Layout from '@/layout'
import departments from '@/views/departments'
// 组织架构的路由规则设置
export default {
  path: '/deparments',
  component: Layout,
  children: [
    {
      path: '', // 如果是从/departments请求,则除了加载Layout之外，还会加载该元素中path为空的路由，即departments的内容

      name: 'deparments',
      component: departments,
      meta: {
        title: '组织架构',
        icon: 'dashboard'
      }
    }
  ]
}